extends Control


signal file_selected(file)

func _ready():
	$FileFialog.connect("file_selected", self, "_on_file_selected")
	


func state_update():
	$FileFialog.popup()
	

func set_current_dir(current_dir:String):
	$FileFialog.current_dir = current_dir



func _on_file_selected(file):
	emit_signal("file_selected", file)
	pass


func _on_FileFialog_popup_hide():
	MainTool.getUILayer().pop_ui()
